⬆️🔒️ Maintenance/vulnerability upgrade for ujson, upgrade fastapi+starlette#3112
Merged
pcrespov merged 9 commits intoITISFoundation:masterfrom Sep 20, 2022
Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3112 +/- ##
======================================
Coverage 82.9% 83.0%
======================================
Files 808 808
Lines 34261 34261
Branches 1358 1358
======================================
+ Hits 28419 28450 +31
+ Misses 5661 5630 -31
Partials 181 181
Flags with carried forward coverage won't be shown. Click here to find out more.
|
2f17666 to
39d9f2e
Compare
2 tasks
0598c50 to
7876149
Compare
7876149 to
50b01da
Compare
41453bb to
a8399d0
Compare
a8399d0 to
3e4e8c3
Compare
|
Kudos, SonarCloud Quality Gate passed!
|
3e4e8c3 to
36b7832
Compare
36b7832 to
de347a6
Compare
sanderegg
approved these changes
Sep 19, 2022
7906918 to
b145096
Compare
mrnicegyu11
approved these changes
Sep 19, 2022
GitHK
approved these changes
Sep 20, 2022
d7d04b6 to
56255a0
Compare
mguidon
approved these changes
Sep 20, 2022
56255a0 to
b49c4cf
Compare
|
Kudos, SonarCloud Quality Gate passed!
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.








What do these changes do?
ujsonto overcome vulnerabilities CVE-2021-45958, GHSA-fh56-85cw-5pq6ujsondependencies were introduced byfastapi. By upgrading the latter, it pushed mainly the versions ofstarletteandujson. The problem is thatstarlettebroke parsing:in routes Fix regression on route paths with colons Kludex/starlette#1675 (see failing tests inservices/api-server/tests/unit/test__fastapi.py). That issue was fixed in starlette and released instarlette==0.20.2, BUT fastapi still hasstarlette==0.19.1which should be resolved with When a url contains colon, it makes 404 response. After I upgrade fastapi from 0.75.0 to 0.77.1. fastapi/fastapi#4892.ON HOLD-> recently released https://github.com/tiangolo/fastapi/releases/tag/0.85.0Related issue/s
How to test
services/api-server/tests/unit/test__fastapi.pyChecklist
starlette>=0.20.2-> https://github.com/tiangolo/fastapi/releases/tag/0.85.0upgrade director?won't doHighlights on updated libraries (only updated libraries are included)
autoscaling⬆️
catalog⬆️
datcore-adapter⬆️
director-v2⬆️
dynamic-sidecar⬆️
service-library🧪
autoscaling⬆️
catalog⬆️
datcore-adapter⬆️
director-v2⬆️
dynamic-sidecar⬆️
service-library🧪
catalog⬆️
director-v2⬆️
storage⬆️
web⬆️
Legend:
Repo-wide overview of libraries